<?php



class RolCredencialMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RolCredencialMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('rol_credencial');
		$tMap->setPhpName('RolCredencial');

		$tMap->setUseIdGenerator(true);

		$tMap->addForeignKey('ROL_ID', 'RolId', 'int', CreoleTypes::INTEGER, 'rol', 'ID', false, null);

		$tMap->addForeignKey('CREDENCIAL_ID', 'CredencialId', 'int', CreoleTypes::INTEGER, 'credencial', 'ID', false, null);

		$tMap->addColumn('ACTIVO', 'Activo', 'int', CreoleTypes::TINYINT, true, null);

		$tMap->addForeignKey('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, 'usuario', 'ID', false, null);

		$tMap->addForeignKey('UPDATE_BY', 'UpdateBy', 'int', CreoleTypes::INTEGER, 'usuario', 'ID', false, null);

		$tMap->addColumn('UPDATED_FIELDS', 'UpdatedFields', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 